<!-- 积分管理 -->
<template>
  <div class="mod-config">
    <el-tabs v-model="activeName" @tab-click="handleClick" type="border-card">
      <el-tab-pane label="积分累计规则" name="first">
        <sum-index></sum-index>
      </el-tab-pane>
      <!-- <el-tab-pane label="积分兑换规则" name="second">
        <change-index></change-index>
      </el-tab-pane> -->
    </el-tabs>
  </div>
</template>
<script>
import SumIndex from './components/SumIndex'
// import RoleIndex from '../rolediscount/index'
  export default {
    data() {
      return {
        activeName: 'first'
      };
    },
    components: {
      SumIndex
      // ChangeIndex
    },
    methods: {
      handleClick(tab, event) {
        console.log(tab, event);
        if(tab.name =="first"){
          console.log("first");
        }else if(tab.name =="second"){
          console.log("second");
        }
      }
    }
  };
</script>
